﻿<%@ Page Language="C#" MasterPageFile="~/TrangChinh.master" AutoEventWireup="true"
    CodeFile="CapNhatThongTinBaiDang.aspx.cs" Inherits="CapNhatThongTinBaiDang" Title="Chia Sẻ Hình Ảnh" %>

<%@ Register Src="UserControl/UCPhanTrang.ascx" TagName="UCPhanTrang" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="UloadAlbum">
        <div class="ImageAlbum">
            <asp:Image ID="Img" runat="server" />
        </div>
        <div class="Info">
            <h4>
                <asp:TextBox ID="txtTenBaiDang" runat="server" Width="200px"></asp:TextBox>
            </h4>
            <asp:TextBox ID="txtMoTa" runat="server" Width="300px" CssClass="Description" /><br />
            <asp:Label ID="lbNgayTao" runat="server" Text="Label" CssClass="DateCreated" />
            <asp:Label ID="lbThoiGian" runat="server" Text="Label" CssClass="DateCreated" /><br />
            <asp:Button ID="btnDelete" runat="server" Text="Xóa Album này" CssClass="btnDeleteAlbum"
                OnClick="btnDelete_Click" />
            <asp:Button ID="btnLuu" runat="server" Text="Lưu Album" CssClass="btnDeleteAlbum"
                OnClick="btnLuu_Click" />
            <asp:Label ID="lbThongBao" runat="server" Text="Label" Visible="false" CssClass="DateCreated" />
        </div>
    </div>
    <div class="UloadImages">
        <hr />
        <div class="Uload">
            <asp:FileUpload ID="upImage" runat="server" BorderColor="Yellow" BorderStyle="Solid"
                BorderWidth="1px" Width="200px" />
            <asp:Button ID="btnUpload" runat="server" Text="Tải lên" CssClass="btnUpload" />
            <asp:Label runat="server" ID="lblStatus" CssClass="status" />
        </div>
        <div class="Uload">
            <asp:Button ID="btnXoaHinhAnh" runat="server" Text="Xóa ảnh" 
                CssClass="btnUpload" onclick="btnXoaHinhAnh_Click"/>
        </div>
        <hr />
        <div class="UloadImagesList">
            <asp:DataList ID="dlImageList" runat="server" RepeatColumns="2">
                <ItemTemplate>
                    <input type="checkbox" name='cid' value='<%#Eval("MaThongTinBaiDang") %>' />
                    <img src='<%# DAL.Connect.Link.LayHinhAnh(Eval("HinhAnh").ToString()) %>' alt='<%#HttpUtility.HtmlEncode(Eval("MoTa").ToString()) %>' />
                </ItemTemplate>
            </asp:DataList>
        </div>
        <div class="Pager">
            <uc1:UCPhanTrang ID="PagerBottom" runat="server" />
        </div>
    </div>
</asp:Content>
